<template>
  <div>query参数 {{ name }}</div>
</template>

<script>
export default {
  data() {
    return {
      name: "",
    };
  },
  name: "router1",
  activated() {
    this.name = JSON.parse(this.$route.query.name);
  },
  mounted() {},
};
</script>

<style></style>
